#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include <QNetworkAccessManager>
#include <QNetworkReply>
#include <QJsonDocument>
#include <QJsonArray>
#include <QJsonObject>
#include <QFileDialog>
#include <QTextStream>
#include <QMessageBox>

QT_BEGIN_NAMESPACE
namespace Ui { class Widget; }
QT_END_NAMESPACE

class Widget : public QWidget
{
    Q_OBJECT

public:
    Widget(QWidget *parent = nullptr);
    ~Widget();

    void sentHttpsRequest();

private slots:

    void on_toolButton_clicked();

    void requestReply(QNetworkReply *reply);

    void on_toolButton_2_clicked();

private:
    double requested_time = 0;
    QString file_dir,request_url;
    Ui::Widget *ui;
    QNetworkReply *reply = nullptr;
    QNetworkAccessManager *manager = nullptr;
};
#endif // WIDGET_H
